<div class="content margin_top_foot">
    <header class="header fixed_top bg_mx_green"></header>
    <div class="relative">
        <img src="/static/images/user_bg.jpg" alt="">
        <div class="flex">
            <div class="user_info v_center arrow_right" onclick="location.href='<{url route='user-info'}>'">
                <div class="width_70 border_white circle" style="border-width:3px">
                    <img class="circle" src="<{$user['avatar']}>" alt="">
                </div>
                <div class="left_70 padding_h_15 white text_ellipsis font_16"><{$user['nickname']}></div>
            </div>
        </div>
    </div>
    <div class="margin_10 bg_white padding_h_15 lineheight_3 flex_justify arrow_right"
         onclick="location.href='/business/user/score-record'">
        <div><span class="iconfont icon-star1 mx_green font_18"></span> 您的积分</div>
        <div class="text_info padding_r_10"><{$score}>分</div>
    </div>

    <div class="user_navs"></div>

    <div class="margin_10 padding_h_15 lineheight_3">
        <a class="btn btn_block col_12" href="tel:<{$custom_tel}>" style="background-color: #569938;color:#fff;margin-bottom: 10px;margin-bottom: 100px;">联系客服</a>
    </div>
    <footer class="foot_tab fixed_bottom mx_green font_16"></footer>
</div>

<script type="text/template" charset="utf-8" id='nav_template'>
    {{for(var i=0;i<it.length;i++){}}
        <div class="margin_10 bg_white padding_h_15 lineheight_3 flex_justify arrow_right"
             onclick="location.href='{{=it[i].link}}'">
            <div><span class="iconfont icon-{{=it[i].icon}} mx_green font_18"></span> {{=it[i].name}}</div>
            <div class="text_info padding_r_10"></div>
        </div>
    {{}}}
</script>


<script>
    // 栏目模版
        var navs = <{$menus}>;
        var evalnav = doT.template($("#nav_template").text());
        loaddata(".user_navs",evalnav,navs)
    // 头部,底部菜单
        loadheadbar("个人中心");
        loadfootbar();
</script>


